import request from '../utils/request'

/**
 * 登录
 */
export function _login(data) {
  return request({
    url: '/sys/login',
    data,
    method: 'POST'
  })
}

/**
 * 关注
 */
export function _userFollow(data) {
  return request({
    url: '/user/follow',
    data
  })
}

/**
 * 发表评论
 */
export function userArticleComment(data) {
  return request({
    url: '/user/article/comment',
    data,
    method: 'post'
  })
}

/**
 * 点赞
 */
export function userPraise(data) {
  return request({
    url: '/user/praise',
    data
  })
}

/**
 * 收藏
 */
export function userCollect(data) {
  return request({
    url: '/user/collect',
    data
  })
}
